package com.pearadmin.pro.modules.not.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.pearadmin.pro.common.web.base.page.PageResponse;
import com.pearadmin.pro.modules.not.domain.SysInbox;
import com.pearadmin.pro.modules.not.domain.SysInboxreply;
import com.pearadmin.pro.modules.not.param.SysInboxRequest;

import java.util.List;

public interface SysInboxService extends IService<SysInbox> {

    /**
     * 获取私信列表
     *
     * @param request 参数实体
     * @return {@link SysInbox}
     */
    List<SysInbox> list(SysInboxRequest request);

    /**
     * 获取私信列表 (分页)
     *
     * @param request 参数实体
     * @return {@link SysInbox}
     */
    PageResponse<SysInbox> page(SysInboxRequest request);

    /**
     * 查看具体私信内容（多条）
     *
     * @param param
     * @return java.util.List<com.pearadmin.pro.modules.not.domain.SysInboxreply>
     * @author ZhouXingYun
     * @date 2022/5/9 15:01
     */
    List<SysInboxreply> getLetterCount(String param);

    /**
     *  消息回复
     * @param sysInboxreply
     * @return boolean
     * @author ZhouXingYun
     * @date 2022/5/9 18:58
     */
    boolean messageReply(SysInboxreply sysInboxreply);

    /**
     * 新增消息记录
     *
     * @author ZhouXingYun
     * @date 2022/5/10 17:43
     * @param sysInbox
     * @return boolean
     */
    boolean insertReply(SysInbox sysInbox);
}
